package date;


import java.time.LocalDate;

public class LocalDateDemo {
    public static void main(String[] args) {
        LocalDate d1 = LocalDate.now();
        System.out.println(d1);
        System.out.println(LocalDate.of(2020, 10, 1));
        System.out.println(d1.getDayOfMonth());
        System.out.println(d1.getDayOfYear());
        LocalDate localDate = LocalDate.of(2004, 3, 8);
        System.out.println(localDate.isLeapYear());
    }
}
